<table>
    <tr>
        <th width="140px">velocity</th>
        <th width="140px">jetbrick-template</th>
        <th width="40px">异同</th>
        <th width="100px">功能</th>
        <th>变化</th>
    </tr>
    <tr>
        <td>${foo.bar}<br>$foo.bar</td>
        <td>${foo.bar}</td>
        <td><font color="green">相同</font></td>
        <td>输出占位符</td>
        <td>jetbrick-template 大括号必需</td>
    </tr>
    <tr>
        <td>$!{foo.bar}<br>$!foo.bar</td>
        <td>$!{foo.bar}</td>
        <td><font color="red">不同</font></td>
        <td>空值不显示源码</td>
        <td>velocity 为空值不显示源码<br>jetbrick-template 改为HTML过滤输出</td>
    </tr>
    <tr>
        <td>## ...<br>#* ... *#</td>
        <td>## ...<br>#-- ... --#</td>
        <td>相似</td>
        <td>注释</td>
        <td>块注释格式不一样</td>
    </tr>
    <tr>
        <td>#[[ ... ]]#</td>
        <td>#[[ ... ]]#</td>
        <td><font color="green">相同</font></td>
        <td>不解析文本块</td>
        <td></td>
    </tr>
    <tr>
        <td>\# \$ \\</td>
        <td>\# \$ \\</td>
        <td><font color="green">相同</font></td>
        <td>特殊字符转义</td>
        <td></td>
    </tr>
    <tr>
        <td>n/a</td>
        <td>#define(Type foo = bar)</td>
        <td><font color="red">新增</font></td>
        <td>给变量声明类型</td>
        <td></td>
    </tr>
    <tr>
        <td>#set($foo = $bar)</td>
        <td>#set(foo = bar)<br>#set(Type foo = bar)</td>
        <td><font color="green">相同</font></td>
        <td>给变量赋值</td>
        <td>可带类型声明</td>
    </tr>
    <tr>
        <td>n/a</td>
        <td>#put(name, value)</td>
        <td><font color="red">新增</font></td>
        <td>保存变量到全局</td>
        <td>支持父子模板参数的全局传递</td>
    </tr>
    <tr>
        <td>#if($foo == $bar)</td>
        <td>#if(foo == bar)</td>
        <td><font color="green">相同</font></td>
        <td>条件判断</td>
        <td></td>
    </tr>
    <tr>
        <td>#elseif($foo == $bar)</td>
        <td>#elseif(foo == bar)</td>
        <td><font color="green">相同</font></td>
        <td>否定条件判断</td>
        <td></td>
    </tr>
    <tr>
        <td>#else</td>
        <td>#else</td>
        <td><font color="green">相同</font></td>
        <td>否定判断</td>
        <td></td>
    </tr>
    <tr>
        <td>#end</td>
        <td>#end</td>
        <td><font color="green">相同</font></td>
        <td>结束指令</td>
        <td></td>
    </tr>
    <tr>
        <td>#foreach($item in $list)</td>
        <td>#for(item : list)<br>#for(Type item : list)</td>
        <td>相似</td>
        <td>循环指令</td>
        <td>改为Java格式，可以带类型声明</td>
    </tr>
    <tr>
        <td>#break</td>
        <td>#break<br>#break(foo == bar)</td>
        <td><font color="green">相同</font></td>
        <td>中断循环</td>
        <td>可以直接带条件</td>
    </tr>
    <tr>
        <td>n/a</td>
        <td>#continue<br>#continue(foo == bar)</td>
        <td><font color="red">新增</font></td>
        <td>继续下一个循环</td>
        <td>可以直接带条件</td>
    </tr>
    <tr>
        <td>#stop</td>
        <td>#stop<br>#stop(foo == bar)</td>
        <td><font color="green">相同</font></td>
        <td>停止模板解析</td>
        <td>可以直接带条件</td>
    </tr>
    <tr>
        <td>#macro($foo)</td>
        <td>#macro foo(...)</td>
        <td>相似</td>
        <td>可复用模板片段宏</td>
        <td>velocity 将宏作为指令执行<br> jetbrick-template 作为函数执行</td>
    </tr>
    <tr>
        <td>n/a</td>
        <td>#tag foo(...)</td>
        <td><font color="red">新增</font></td>
        <td>自定义标签</td>
        <td>jetbrick-template 允许自定义标签</td>
    </tr>
    <tr>
        <td>#include("foo.txt")</td>
        <td>read("foo.txt")</td>
        <td>相似</td>
        <td>读取文本文件内容</td>
        <td>jetbrick-template 用扩展函数实现</td>
    </tr>
    <tr>
        <td>#parse("foo.vm")</td>
        <td>#include("foo.jetx")<br/>#include("foo.jetx", args)</td>
        <td><font color="green">相同</font></td>
        <td>包含另一模板输出</td>
        <td>jetbrick-template 支持私有参数传递</td>
    </tr>
    <tr>
        <td>#evaluate("${1 + 2}")</td>
        <td>n/a</td>
        <td><font color="red">不同</font></td>
        <td>模板求值</td>
        <td>jetbrick-tempate 暂不支持</td>
    </tr>
</table>